package com.yc.qunxing;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@SpringBootApplication(scanBasePackages = {"不存在的包","com.yc.qunxing.web"},exclude = DataSourceAutoConfiguration.class)
@EnableFeignClients
public class QunxingIndexApplication implements WebMvcConfigurer{

    public static void main(String[] args) {
        SpringApplication.run(QunxingIndexApplication.class, args);
    }

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/**")
                .addResourceLocations("file:D:\\java\\IDEAProjects\\qunxing\\qunxing-parent\\qunxing-index\\src\\main\\resources\\static/");
    }
}
